#include"SList.h"

//void TestSLT1()
//{
//	SLNode* plist = NULL;
//	SLTPushBack(&plist, 1);
//	SLTPushBack(&plist, 2);
//	SLTPushBack(&plist, 3);
//	SLTPushBack(&plist, 4);
//	SLTPrint(plist);
//
//	SLTPopBack(&plist);
//	SLTPrint(plist);
//
//	SLTPopBack(&plist);
//	SLTPrint(plist);
//
//	SLTPopBack(&plist);
//	SLTPrint(plist);
//
//	SLTPopBack(&plist);
//	SLTPrint(plist);
//
//	//SLTPopBack(&plist);
//	//SLTPrint(plist);
//}

void TestSLT2()
{
	SLNode* plist = NULL;
	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	SLTPushFront(&plist, 4);
	SLTPrint(plist);

	SLTPopFront(&plist);
	SLTPrint(plist);

	SLNode* pos = SLTFind(plist, 3);
	SLTInsert(&plist, pos, 30);
}

int main()
{
	//struct ListNode* n1 = (struct ListNode*)malloc(sizeof(struct ListNode));
	//struct ListNode* n2 = (struct ListNode*)malloc(sizeof(struct ListNode));
	//struct ListNode* n3 = (struct ListNode*)malloc(sizeof(struct ListNode));
	//struct ListNode* n4 = (struct ListNode*)malloc(sizeof(struct ListNode));
	///*n1->val = 7;
	/*n2->val = 7;
	n3->val = 7;
	n4->val = 7;

	n1->next = n2;
	n2->next = n3;
	n3->next = n4;
	n4->next = NULL;*/

	/*struct ListNode* head = removeElements(n1, 7);*/
	TestSLT2();
	return 0;
}